package cn.stylefeng.guns.modular.hp.service.imp;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;

import cn.stylefeng.guns.modular.hp.dao.HospitalDescMapper;
import cn.stylefeng.guns.modular.hp.model.HospitalDescInfo;
import cn.stylefeng.guns.modular.hp.service.IHospitalDescInfoService;

/**
 * <p>
 * 专家介绍表 服务实现类
 * </p>
 *
 * @author xzqiang
 * @date 2018-12-17
 */
@Service
public class HospitalDescInfoImpl extends ServiceImpl<HospitalDescMapper, HospitalDescInfo> implements IHospitalDescInfoService {

    @Override
    public List<Map<String, Object>> list() {
        return this.baseMapper.list();
    }

	@Override
	public List<HospitalDescInfo> hospitalDescInfoList() {
		return this.baseMapper.hospitalDescInfoList();
	}

	@Override
	public HospitalDescInfo getHospitalDesc() {
		List<HospitalDescInfo> infoList = this.baseMapper.getHospitalDesc();
		return infoList != null && infoList.size() > 0 ? infoList.get(0) : null;
	}
}
